package com.cn.组件的快速导入;

import org.springframework.context.annotation.ImportSelector;
import org.springframework.core.type.AnnotationMetadata;

/**
 * @Auther: 代理仁
 * @Date: 2019/7/8 22:57
 * @Description: 通过实现ImportSelector接口批量导入组件
 */
public class MyImportSelector implements ImportSelector {
    @Override
    public String[] selectImports(AnnotationMetadata importingClassMetadata) {
        return new String[]{"com.cn.组件的快速导入.QuickConfigChildThree","com.cn.组件的快速导入.QuickConfigChildTwo"};
    }
}
